import request from '@/utils/request'

export function getUserList(params) {
  return request({
    url: '/api/sysuser/list',
    method: 'get',
    params: params
  })
}

export function update(data) {
  return request({
    url: '/api/sysuser/update',
    method: 'post',
    data: data
  })
}

export function insert(data) {
  return request({
    url: '/api/sysuser/insert',
    method: 'post',
    data: data
  })
}

export function configUserRoles(data) {
  return request({
    url: '/api/sysuser/configUserRoles',
    method: 'post',
    data: data
  })
}
export function deleteUser(data) {
  return request({
    url: '/api/sysuser/delete_user',
    method: 'post',
    data: data
  })
}